package com.example.utils;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface ImgUtil {
    /**
     * 上传单张图片
     *
     * @param file
     * @return
     */
    String upload(MultipartFile file);

    /**
     * 下载图片
     *
     * @param fileName
     * @param response
     * @return
     */
    String downloadFile(String fileName, HttpServletResponse response);

    /**
     * 上传多张图片
     *
     * @param files
     * @return
     */
    List<String> uploadFilesmore(List<MultipartFile> files);
}
